home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / bin / pnmsmooth < prev    next >
Text File  |  1995-07-02  |  257b  |  21 lines

  1. #!/bin/sh
  2. #
  3. # pnmsmooth - smooth out an image by replacing each xel with the
  4. #             average of its nine immediate neighbors
  5.  
  6. tmp=/tmp/psm.$$
  7. rm -f $tmp
  8.  
  9. cat > $tmp << MOO
  10. P2
  11. 3 3
  12. 18
  13. 10 10 10
  14. 10 10 10
  15. 10 10 10
  16. MOO
  17.  
  18. pnmconvol $tmp ${1+"$@"}
  19.  
  20. rm -f $tmp
  21.